package com.fengye.cluster.impl;

import com.fengye.cluster.ClusterStrategy;
import com.fengye.model.ProviderService;
import org.apache.commons.lang3.RandomUtils;

import java.util.List;
import java.util.concurrent.ThreadLocalRandom;

/**
 * 软负载随机算法
 * @Author fengye
 * @Date 2023/2/15 11:46
 **/
public class RandomClusterStragyImpl extends AbstractClusterStrategt {

    @Override
    public ProviderService doSelect(List<ProviderService> providerServiceList) {
        return super.randomCluster(providerServiceList);
    }
}
